﻿@using Codingwell.DevText.Controller
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    @if (string.IsNullOrEmpty(ViewBag.Title)) {<title>devtext开发者社区</title> } else { <title>@ViewBag.Title - devtext开发者社区</title>}
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <link rel="shortcut icon" href="/favicon.ico" type="image/vnd.microsoft.icon" />
    @if (IsSectionDefined("HeaderSection")) { 
        @RenderSection("HeaderSection", false)
    } else { 
        <meta name="keywords" content="devtext,mvc,开发者社区,code,代码分享,devtext开发者社区" />
        <meta name="description" content="devtext开发者社区-我们关注互联网、关注软件开发、提供开发技术交流、问答平台，致力于为程序员提供切实可行的解决问题的方案" />
    }
    <script src="@Url.Content("~/scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
    <link href="@Url.Content("~/skin/basic/style.css")" rel="stylesheet" type="text/css" />
</head>
<body>
    <div class="header">
        <!-- 顶部开始 -->
        <div class="top">
            <div class="fl logo">
                <a href="/" title="返回首页">
                    <img src="/skin/basic/images/devtext.gif" alt="logo" /></a>
            </div>
            <div class="fr">
                @if (UserContext.Instance.IsAuthenticated && System.Web.HttpContext.Current.Session.Count > 0) {
                    <div class="login_in">
                        <span class="fl"><a class="vwmy" href="/user/@UserContext.Instance.UserID/"><b>@UserContext.Instance.User.NickName</b></a>|<a
                            href="/home/personal">个人资料</a>|<a href="/site/logout" id="login_out">退出</a></span><span
                                class="fl user_tx"> <a href="/user/@UserContext.Instance.UserID/" alt="用户名称">
                                    @if (string.IsNullOrEmpty(UserContext.Instance.User.Figureurl50)) {
                                        <img src="/skin/basic/images/noavatar_small.gif" alt="暂无头像" />
                                    } else {
                                        <img src="@UserContext.Instance.User.Figureurl50" alt="头像" />
                                    }</a> </span>
                    </div>
					
                } else {
                    <div class="login" id="login">
                        <span class="fl" style="border-right: 1px solid #CBCBCB"><a href="javascript:openQQ();"
                            title="用QQ账号登录">
                            <img src="/skin/basic/images/Connect_logo_3.png" alt="用QQ账号登录" /></a><br />
                            只需一步，快速开始 </span><span class="fl"><a href="javascript:openSina();" title="用新浪账号登录">
                                <img src="/skin/basic/images/sina240.png" alt="用新浪账号登录" /></a><br />
                                只需一步，快速开始 </span>
                    </div>
                }
            </div>
        </div>
        <!-- 导航开始 -->
        <div class="navout">
            <ul class="fl" id="nav">
                <li><a href="/" title="devtext首页">首页</a></li>
                <li><a href="/blogs" title="it业内资讯">博客</a></li>
                <li><a href="/question" title="问答">问答</a></li>
                <li><a href="/news" title="it业内资讯">业内资讯</a></li>
            </ul>
            @if (UserContext.Instance.IsAuthenticated && System.Web.HttpContext.Current.Session.Count > 0) {
                <div class="fr" id="mymenu">
                    <a href="/home/event">我的中心</a>
                </div>
            }
        </div>
        <!-- 内部导航开始 -->
        <div class="innav">
            <div class="fl">
                @RenderSection("LocationPath", false)
            </div>
            <div class="fr search">
                <span class="fl"><a class="sear_fast" href="javascript:void(0);">快速搜索</a></span>
                <span class="fl">
                    <input class="sear_text" type="text" name="keywordf" value="输入搜索关键字" onblur="if(this.value=='')this.value=defaultValue"
                        onclick="if (this.value == this.defaultValue) this.value = ''" onkeydown="if(this.value==this.defaultValue)this.value = ''"></span>
                <span class="fl">
                    <input class="sear_butn" type="submit" onclick="javascript: alert('开发中'); return false;"
                        name="searchsubmit" value=""></span>
            </div>
        </div>
    </div>
    <!-- 内容部分开始 -->
    <div class="content">
        @RenderBody()
    </div>
    <!-- 底部样式开始 -->
    <div class="footer">
        <div class="footer_con">
            <dl class="first">
                <dt>Contact</dt>
                <dd>
                    <a href="/site/info">关于本站</a><br />
                    <a href="/site/contactus">联系站长</a><br />
                    <a href="#">我想留言</a>
                </dd>
            </dl>
            <dl>
                <dt>Partners</dt>
                <dd>
                    <a href="http://www.appsinfo.net">应用信息汇</a><br />
                    <a href="http://www.codingwell.com">Codingwell</a><br />
                    
                </dd>
            </dl>
            <div class="copyRight">
                © 2009-2012 <a target="_blank" href="http://www.devtext.com">Devtext.com
					版权所有</a>|<a target="_self" href="#">沪ICP备09084972号</a>&nbsp;&nbsp;静态文件存储由<a href="https://www.upyun.com/?md=devtext">又拍云</a>提供
            </div>
        </div>
    </div>
    <script type="text/javascript">
        function openQQ() {
            var QQLogin = window.open("/site/qzonelogin", "TencentLogin", "width=600,height=360,menubar=0,scrollbars=0, status=1,titlebar=0,toolbar=0,location=1");
        }
        function openSina() {
            var SinaLogin = window.open("/site/sinalogin", "SinaLogin", "width=600,height=360,menubar=0,scrollbars=0, status=1,titlebar=0,toolbar=0,location=1");
        }
    </script>
    <div style="display: none;">
        <script type="text/javascript">
            var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
            document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F4cb7f4ed8d06171dc6c3e885e757a14c' type='text/javascript'%3E%3C/script%3E"));
        </script>
        <script type="text/javascript">
            var _gaq = _gaq || [];
            _gaq.push(['_setAccount', 'UA-7873959-4']);
            _gaq.push(['_setDomainName', '.devtext.com']);
            _gaq.push(['_trackPageview']);
            (function () {
                var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
            })();

        </script>
    </div>
</body>
</html>
